package controllers;

import models.Repository;
import play.libs.Crypto;
import play.mvc.Controller;

public class Repositories extends Controller {
	
	public static void add() {
		render();
	}
	
	public static void save(final Repository repository) {
		repository.password = Crypto.encryptAES(repository.password);
		repository.save();
		Application.index();
	}

}
